home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14327 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  693 b 

  1. Path: news.nask.org.pl!usenet
  2. From: flssoft@blue.maloka.waw.pl (Grzegorz (FLS))
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: What's the easiest way to do this?
  5. Date: Fri, 29 Mar 1996 18:43:04 GMT
  6. Organization: Research and Academic Computer Network
  7. Message-ID: <4jhaqs$hai@bilbo.nask.org.pl>
  8. References: <4j9j5s$oou@news1.warwick.net>
  9. NNTP-Posting-Host: s111.maloka.waw.pl
  10. X-Newsreader: Forte Free Agent v0.46
  11.  
  12. vidman@warwick.net (Young C++ programmer will thank profusely) wrote:
  13.  
  14. >Can someone tell me the easiest way to read scan a text file for
  15. >endline chars using ifstream.
  16.  
  17. Use <getline()> to get text, <gcount()> to check the number of bytes
  18. read, and <eof()> to test the end of input.
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.